package org.iabako.shared.iservice.business;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import org.iabako.shared.entity.business.Sale;
import org.iabako.shared.entity.business.SaleProductService;
import org.iabako.shared.exception.IabakoActionForbiddenException;
import org.iabako.shared.exception.IabakoPackageForbiddenException;
import org.iabako.shared.exception.IabakoUniqueConstraintException;
import org.iabako.shared.iservice.generic.BusinessEntityService;
import org.iabako.shared.iservice.generic.CRUDService;
import org.iabako.shared.iservice.generic.SearchService;

import java.util.List;

/**
 * Created by jose on 12/07/15.
 */

@RemoteServiceRelativePath("iabakoServices/quoteService")
public interface QuoteService extends SearchService, CRUDService, BusinessEntityService, RemoteService {

    Sale save(Sale sale, List<SaleProductService> productsServices) throws IabakoActionForbiddenException, IabakoUniqueConstraintException;
}
